package com.term.demo.dao;

import com.mysql.cj.x.protobuf.MysqlxDatatypes;
import com.term.demo.entity.AdminInfo;
import com.term.demo.vo.AdminInfoVo;
import tk.mybatis.mapper.common.Mapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminInfoDao extends Mapper<AdminInfo> {
    List<AdminInfoVo> findByName(@Param("name") String name);
    int checkRepeat (@Param("column") String column, @Param("value") String value, @Param("id") Long id);
    AdminInfoVo findByUsername(String username);
    Integer count();


}
